//
//  YCBaseViewController.m
//  YCAdapterMode
//
//  Created by 安跃超 on 2018/12/3.
//  Copyright © 2018年 安跃超. All rights reserved.
//

#import "YCBaseViewController.h"
#import <objc/runtime.h>

@interface YCBaseViewController ()
@property (nonatomic,assign)BOOL mvpEnabled;
@end

@implementation YCBaseViewController

- (void)config:(NSString *)name {

    self.mvpEnabled = true;

    Class presenterClass = NSClassFromString([NSString stringWithFormat:@"YC%@Presenter",name]);
    if (presenterClass != NULL) {
        [presenterClass new];
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}


@end
